package cn.bestick.thirteenKiller.dao;

import cn.bestick.thirteenKiller.dmo.CardImage;

import java.util.List;

/**
 * Created by bestick on 2016/1/17.
 */
public interface Data {

    /**
     * 存数据到数据库
     *
     * @param path
     * @throws Exception
     */
    void saveData(String path) throws Exception;

    /**
     * 从数据库获取数据返回List
     *
     * @return List
     * @throws Exception
     */
    List<CardImage> getWantedCardImgList() throws Exception;

    /**
     * 获取图片数据List
     *
     * @return List<CardImage>
     * @throws Exception
     */
    List<CardImage> getTotalCardImgList() throws Exception;

    /**
     * 清空临时表
     * @throws Exception
     */
    void truncateTmp() throws Exception;
}
